import React,{lazy} from "react";
import { Navigate, RouteObject } from 'react-router-dom';
const DocGroupView = lazy(() => import('../pages/DocGroupView'));
const HomePage = lazy(() => import('../pages/HomePage'));

const routes: RouteObject[] = [
  {
    path: '/',
    element: <Navigate to="/home-page" />
  },
  {
    path: '/doc-group',
    element: <DocGroupView />
  },
  {
    path: '/home-page',
    element: <HomePage />
  }
]


export default routes